package zuoye04;

public class Artist extends Shape {
    public void drawShape(){
        Shape a = new Rectangle();
        Shape b = new RightTriangle(8,4);
        a.draw();
        System.out.println("-------------");
        b.draw();
    }

    public static void main(String[] args) {
        Shape a =new Artist();
        a.drawShape();
    }
}
